package br.com.caelum.argentum.indicadores;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;

import br.com.caelum.argentum.modelo.Candles;
import br.com.caelum.argentum.modelo.SerieTemporal;

public class GeradorDeSerie {
	public static SerieTemporal criaSerie(double... valores) {
		   List<Candles> candles = new ArrayList<Candles>();
		   for (double d : valores) {
		     candles.add(new Candles(d, d, d, d, 1000, 
		                     Calendar.getInstance()));
		   }
		   return new SerieTemporal(candles);
		 }
}
